#ifndef MAIN_DIALOG_H
#define MAIN_DIALOG_H

#include <QDialog>
#include <QStandardItemModel>

#include <common/types.h>

namespace Ui {
    class Main_dialog;
}

class Main_dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Main_dialog(QWidget *parent = 0);
    ~Main_dialog();

signals:
   void s_new_project(int module);

private slots:
   void send_new_project_signal();
   void new_project(QModelIndex index);
   void show_description(int module);
   void activate_new_button(QModelIndex index);

private:
   void initialize_modules();

private:
    Ui::Main_dialog *ui;
    QStandardItemModel *model;
    int selected_module;
};

#endif // MAIN_DIALOG_H
